<template>
    <van-swipe 
        class="my-swipe" 
        :autoplay="3000" 
        indicator-color="white" 
        lazy-render>
        <van-swipe-item v-for="item in list" :key="item.carouselUrl">
            <img :src="item.carouselUrl" :alt="item.carouselUrl" />
        </van-swipe-item>

    </van-swipe>
</template>
<script>
export default {
    props: {
        list: Array,
    },
    setup() { },
};
</script>

<style lang="less" scoped>
.my-swipe {

    img {
        width: 100%;
        height: 100%;
    }
}
</style>